package action.stragy;

/**
 * Created by hmily on 2017/9/7.
 */
public class PlusCaculator extends AbstractCaculator implements Caculator {
    @Override
    public void caculator(String exp) {
        int[] parse = parse(exp, "\\+");
        int sum = 0;
        for (int i : parse){
            sum = sum + i;
        }
        System.out.println(sum);
    }
}
